console.log("content.js");
const { hostname, port } = location;
const targetTitle = document.querySelector("title");
let oldTitle = document.title;
if (port === "31943") {
  const observer = new MutationObserver((mutations) => {
    if (oldTitle === document.title) {
      return;
    }
    console.log("document.title", document.title);
    oldTitle = document.title = `${document.title}-${hostname}`;
  });
  observer.observe(targetTitle, { childList: true, attributeOldValue: true });
}
